-- GENERATED SPELL FOR [Unholy Swords] --


function spell0_16216(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16216', 530, 1)
end

function spell1_16216(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_16216', 637, 1)
end

function Sorts_16216(pUnit, Event)
local choix_sorts_16216 = math.random(0, 1)
if choix_sorts_16216 == 0 then
pUnit:RegisterEvent('spell0_16216', 1, 1)
end
if choix_sorts_16216 == 1 then
pUnit:RegisterEvent('spell1_16216', 1, 1)
end
end

function mob16216_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16216', math.random(1500, 3000), 1)
end

function mob16216_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16216_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16216_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16216, 1, 'mob16216_Action')
RegisterUnitEvent(16216, 2, 'mob16216_Leave')
RegisterUnitEvent(16216, 3, 'mob16216_Kill')
RegisterUnitEvent(16216, 4, 'mob16216_Die')
